package org.alis.ap.rpc.server.config;

import lombok.Data;
import org.alis.ap.rpc.codec.Decoder;
import org.alis.ap.rpc.codec.Encoder;
import org.alis.ap.rpc.codec.json.JSONDecoder;
import org.alis.ap.rpc.codec.json.JSONEncoder;
import org.alis.ap.rpc.transport.TransportServer;
import org.alis.ap.rpc.transport.http.ApTransportServer;

/**
 * ServerConfig desc:
 * 服务配置类
 * @author luochuan
 * @date 2020/10/16 16:56
 */
@Data
public class ServerConfig {

    private Class<? extends TransportServer> clazz = ApTransportServer.class;

    private Class<? extends Encoder> encoderClass = JSONEncoder.class;

    private Class<? extends Decoder> decoderClass = JSONDecoder.class;

    private Integer port = 3000;


}
